package com.hqyj.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:mybatis-plus 的分页配置
 * @author: GP
 * @date: 2021/9/14-13:26
 */
@Configuration
public class MybatisPlusPaginationConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
